# clean everything before sharing

pushd `dirname $0`
cd ..
sudo rm -rf ./archives/*
sudo rm -rf ./backups/*.caidx ./backups/casync-store.castr/*
sudo rm -rf ./ignition/ssh/*
sudo rm -rf ./volumes/caches/* ./volumes/db/* ./volumes/srv/webroot/*
sudo chmod -R 0777 ./backups/casync-store.castr
sudo chmod -R 0777 ./volumes
popd
